package cz.acies.uniql.dialect;

import java.io.Serializable;

class ColumnTypesElement implements Serializable
{
	private static final long serialVersionUID = -1106744791051060032L;
	
	private String typeName;
	private int length; 
	private int scale;
	//private String defVal;
	
	public ColumnTypesElement() {
	}

	public ColumnTypesElement(String typeName){
		super();
		setTypeName(typeName);
	} 

	public ColumnTypesElement(String typeName, int length){
		super();
		setTypeName(typeName);
		setLength(length);
	} 

	public ColumnTypesElement(String typeName, int length, int scale){
		super();
		setTypeName(typeName);
		setLength(length);
		setScale(scale);
	} 
		
	// -----  ------------------  ---------------------------------------------
	
	public void setTypeName(String value){
		typeName = value;
	}
		
	public String getTypeName(){
		return typeName;
	}

	public void setLength(int length){
		this.length = length;
	}

	public void setLength(String value){
		this.length = new Integer(value);
	}

	public Integer getLength(){
		return this.length;
	}
	
	public void setScale(int scale){
		this.scale = scale;
	}

	public void setScale(String value){
		this.scale = new Integer(value);
	}

	public Integer getScale(){
		return this.scale;
	}
	/*
	public void setDefault(String value){
		this.defVal = value; 
	}
		
	public String getDefault(){
		return this.defVal;
	}
	*/
}
